package cn.edu.lcvc.ebuy_23rj2.web.controller;

import org.springframework.http.HttpMethod;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController {
    @RequestMapping(method = RequestMethod.GET,value = "/hello")
    @ResponseBody
    public String hello(){
        return "hello World";
    }

    @RequestMapping(method = RequestMethod.GET,value = "/hello2")
    @ResponseBody
    public String hello2(){
        return "hello World2";
    }
}
